<?php
class View_Administration_User_Add extends View_Administration_User
{
	/**
	 *	Builds edit User View.
	 *	@access		public
	 *	@return		string
	 */
	public function buildContent()
	{
		$config		= $this->registry->get( 'config' );
		$request	= $this->registry->get( 'request' );
		$auth		= $this->registry->get( 'auth' );
		$words		= $this->words['user']['addUser'];

		$sources	= array();
		$ui			= array(
			'words'		=> $words,
			'form'		=> $this->buildForm(
				'administration/user',
				'addUser',
				'user',
				'addUser',
				array(),
				$sources
			),
			'buttonCancel'	=> $this->html->LinkButton(
				"?link=".$request->get( 'link' ),
				$words['button_cancel'],
				'but cancel'
			),
			'buttonAdd'		=> $this->html->Button(
				'addUser',
				$words['button_add'],
				'but add'
			),
			'form.tag'		=> $this->html->Form(
				'addUser',
				"?link=".$request->get( 'link' )."&add"
			),
			'colgroup'		=> $this->html->ColumnGroup( $words['colgroup'] ),
			'caption'		=> $this->html->TableCaption( $words['caption'], 'add' ),
		);
		return $this->loadTemplate( 'administration.user.add', $ui );
	}
}
?>